class CommentsController < ApplicationController

  def index 
	@comment = Comment.all
  end


  def show
	@comment = Comment.find(params[:id])
  end

  def new
	@comment = Comment.new
  end


  def create
	@comment = Comment.new(params[:comment])
	@comment.save
	redirect_to @blog_post
  end


  def destroy
	@comment = Comment.find(params[:id])
	@comment.destroy
	redirect_to blog_poss_url
  end	

end
